#include "Task_IFace.h"

/*
 *
 */
class CDummyTask
{

};

/*
 * DUMMY PLUGIN / DUMMY TASK
 */

const char DUMMY_PLUGIN_NAME[] = "dummyPlugin";
const char DUMMY_PLUGIN_DESCRIPTION[] = "Dummy Plugin description";
const char DUMMY_PLUGIN_VERSION[] = "0.0.1";
const char DUMMY_PLUGIN_AUTHOR[] = "John Dole";

static _SPluginRegister pluginReg =
{
  sizeof(_SPluginRegister),
  DUMMY_PLUGIN_NAME,
  DUMMY_PLUGIN_DESCRIPTION,
  DUMMY_PLUGIN_AUTHOR,
  DUMMY_PLUGIN_VERSION
};

/*
 * DUMMY TASK REGISTER
 */

const char DUMMY_TASK_NAME[] = "dummyTask";
const char DUMMY_TASK_DESCRIPTION[] = "Dummy Task description";
const char DUMMY_TASK_VERSION[] = "0.0.1";
const char DUMMY_TASK_AUTHOR[] = "John Dole";

static STaskInstance * CreateInstance()
{
  STaskInstance *instance = new STaskInstance;
  instance->size = sizeof(STaskInstance);
  instance->context = new CDummyTask;

  return instance;
}

static bool DestroyInstance(STaskInstance *instance)
{
  delete static_cast<CDummyTask *> (instance->context);
  delete instance;

  return true;
}

static _STaskRegister taskReg =
{ 
  sizeof(_STaskRegister),
  DUMMY_TASK_NAME,
  DUMMY_TASK_DESCRIPTION,
  DUMMY_TASK_AUTHOR,
  DUMMY_TASK_VERSION,
  CreateInstance,
  DestroyInstance,
  0
};